<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>航空票务系统-注册</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/zhuce.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/jquery.validate.css" />
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/register.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/top.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
		<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
		<script type="text/javascript">
			$(function(){
				
				$("#registerForm").validate({
							rules:{
								"user.userName":{
									required:true
								},
								"user.trueName":{
									required:true
								},
								"user.password":{
									required:true
								},
								"repassword":{
									required:true
								},
								"user.tel":{
									required:true
								},
								"user.email":{
									required:true
								},
								"user.idCard":{
									required:true
								},
								"inputCode":{
									required:true
								},
								"checkbox":{
									required:true
								}
							}
						});
			}) ;
</script>
</head>
<body>
<div class="box">
<jsp:include page="top.jsp"></jsp:include>
<!--注册需填-->
		<div class="main1_1">
		<form action="UserAction!userRegister" method="post" name="registerForm" id="registerForm">
			<div id="maintop">欢迎注册</div>
			<div class="main_1">
				<div class="main-1-wenzi">用户名：</div>
				<div><input name="user.userName" id="user_userName" type="text" style="width:200px; height:26px;"
										size="20" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="username" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">真实姓名：</div>
				<div><input name="user.trueName" id="user_trueName" type="text" style="width:200px; height:26px;"
										size="20" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="truename" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">密码：</div>
				<div><input name="user.password" id="user_password" type="password" style="width:200px; height:26px;"
										size="21" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="password" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">确认密码：</div>
				<div><input name="repassword" id="repassword" type="password" style="width:200px; height:26px;"
										size="21" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="passwords" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">性别：</div>
				<div id="main-1-xingbei-nan"><input type="radio" name="user.sex" id="user_sex" value="男" checked="checked" />男</div>
				<div><input type="radio" name="user.sex" id="user_sex" value="女" />女</div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">身份证号：</div>
				<div><input name="user.idCard" id="user_idCard" type="text" size="20" style="width:200px; height:26px;"
										class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="idCard" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">联系电话：</div>
				<div><input name="user.tel" id="user_tel" type="text" size="20" style="width:200px; height:26px;"
										class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="tel" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">联系地址:</div>
				<div><input name="user.address" id="user_address" type="text" style="width:200px; height:26px;"
										size="20" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
									<span id="address" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">电子邮箱：</div>
				<div><input name="user.email" id="user_email" type="text" size="20" style="width:200px; height:26px;"
										class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)"/>
									<span id="email" class=""></span></div>
			</div>
			<div class="main_1">
				<div class="main-1-wenzi">验证码：</div>
				<div><input name="validateCode" id="inputCode" type="text" style="width:150px; height:26px;"
										size="6" class="input_out" onFocus="forfocus(this)"
										onblur="forblur(this)" onMouseMove="formove(this)"
										onmouseout="out(this)" />
										<img src="AjaxAction!generateCode" id="generateCode" title="点击图片刷新验证码"/>
										<span class="STYLE4" style="color:#728593">不区分大小写</span>
										<span id="validateCode" class=""></span></div>
			</div>
			<div class="main_1">
				<div id="main-2-fusuankuan"><input type="checkbox" id="checkbox" /></div>
				<div id="main-2-wenzi">您是否同意《网站服务条款》？</div>
			</div>
			<div id="main-anniu"><input type="image" src="<%=basePath %>images/zhuce.gif" /></div>
		</form>
		</div>

<!--版权声明-->
	
		 <div class="bottom">
    
    <table width="100%" border="0"  class="STYLE4" style="font-size: 12px" >
    <tr>
    <td><br/></td>
    </tr>
      <tr  >
        <td align="center">友情链接：<a href="http://www.google.com">Google </a>| <a href="http://cn.bing.com">Bing </a>| <a href="http://www.baidu.com">百度</a></td>
      </tr>
      <tr>
        <td align="center">邮箱地址：0100121215@live.com 联系电话：001401001</td>
      </tr>
      <tr>
        <td align="center">Copyright&copy; 2011-2013 版权所有AIRLINE.COM</td>
      </tr>
    </table>
    
     </div>
	
</div>

</body>
</html>
